<template>
  <simple-layout title="带出">
    <div class="content">
      <div class="time-lists" style="margin-top:30px;border-top:1px solid  #7C86A1;">
        <div style="display: flex;justify-content: space-between;">
          <div class="money-name">待释放NGT:0.0</div>
          <div class="money">待释放NGT:0.0</div>
        </div>
      </div>
      <div class="time-lists">
        <div style="display: flex;justify-content: space-between;">
          <div class="money-name">{{currency}}</div>
          <div class="money"  @click="showDay(1)">请选择<i class="mui-icon mui-icon-arrowright"></i></div>
        </div>
      </div>
      <div class="time-lists">
        <div style="display: flex;justify-content: space-between;">
          <div class="money-name">8进9出</div>
          <div class="money"@click="showDay(2)">请选择<i class="mui-icon mui-icon-arrowright"></i></div>
        </div>
      </div>
      <div class="time-lists">
       <div style="display: flex;justify-content: space-between;">
          <div class="money-input"><van-cell-group>
  <van-field v-model="value" placeholder="请输入用户名" />
</van-cell-group></div>
          <div class="money">全部</div>
        </div>
      </div>
      <div>
       <van-button class="submit-btn"  type="default" @click="releaseLog()">确认代出</van-button></div>
       <van-action-sheet
         class="sheet-day"
         v-model="show"
         :actions="actions"
         @select="onSelect"
       />
       <van-action-sheet
         class="sheet-day"
         v-model="show2"
         :actions="actionTwo"
         @select="onSelectTwo"
       />
    </div>
  </simple-layout>
</template>

<script>
  import SimpleLayout from "../../components/SimpleLayout";
  import PayService from '../../service/pay';

  export default {
    name: "Login",
    components: {
      //someComponent
      SimpleLayout
    },
    props: {},
    data() {
      return {
       show: false,
       show2: false,
       currency: '请选择币种',
       currencyNum: '',
       actions: [
          { name: '已释放NGT' },
          { name: 'T释放NGT' },
          { name: '取消' }
        ],
        actionTwo: [
           { name: '3天' },
           { name: '5天' },
           { name: '7天' }
         ],
        transferfilter:{
          pageSize:10,
          pageNum:1
        },
        numbertypeList: ['8进9出','6进7出','4进5出'],
        numberType: '8进9出',
        transferList: []
      };
    },
    computed: {},
    watch: {},
    mounted: function() {
      this.getProductList()
    },
    methods: {
      getProductList(){
        PayService.takeNgt().then(res=>{
          if(res.status == 200){
            // this.transferList = this.transferList.concat(res.resultData.list);
            console.log(res)
          }
        })
      },
     showDay(obj) {
       this.show = obj===1?true:false;
       this.show2= obj===2?true:false;
     },
     onSelect(item) {
            // 点击选项时默认不会关闭菜单，可以手动关闭
        this.show = false;
        this.currency = item.name==='取消'?'请选择币种': item.name
      },
      onSelectTwo(item){
        if(item.name === '3天') this.numberType = this.numbertypeList[0]
              if(item.name === '5天') this.numberType = this.numbertypeList[1]
              if(item.name === '7天') this.numberType = this.numbertypeList[2]
       this.show2 = false;
      }
    }
  };
</script>


<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.content {
 height: 99vh;
  background-color: #f3f4f6;
}
.time-lists {
  padding: 0 20px 10px 10px;
  color: #999;
  background-color: #fff;
}

.mui-bar-nav {
  border-bottom: 1px solid #7C86A1;
}
.money-input .van-cell{
    height: 45px;
    margin-top: 2px;
    padding: 0px 0px;
    border: 0px;
}
.money-input .van-cell /deep/ .van-field__control{
  border: 0px;
}
div.time-lists {
  border-top: 1px solid rgba(153, 153, 153, 0.5);
  height: 48px;line-height: 48px;
}

.time-title {
  border-bottom: 1px solid rgba(153, 153, 153, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.time-title + div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  line-height: 2;
}

.money-title{
  text-align: left;
}

.money-name {
  color: #7681AE;
  font-size: 16px;
  font-weight: bold;
}

.money {
  color: #333;
  font-size: 16px;
  font-weight: bold;
}

.out {
  color: red;
  font-size: 16px;
  font-weight: bold;
}

.in {
  color: #3885FF;
  font-size: 16px;
  font-weight: bold;
}

button.submit-btn {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 13%;
  width: 80%;
  border-radius: 30px;
  background: -webkit-linear-gradient(to right, #696BE2, #7B7FEE, #8E93F9); /* Safari 5.1 - 6.0 */
  background: -moz-linear-gradient(to right, #696BE2, #7B7FEE, #8E93F9); /* Firefox 3.6 - 15 */
  background: linear-gradient(to right, #696BE2, #7B7FEE, #8E93F9); /* 标准的语法 */
  color: #fff;
  height: 52px;
  font-size: 18px;
}
</style>
